ostree: Improve formatting for well-known summary metadata keys
authorPhilip Withnall <withnall@endlessm.com>
Thu, 4 May 2017 10:32:46 +0000 (11:32 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 8 May 2017 00:55:24 +0000 (00:55 +0000)
commita946c3d42385d7ab44a01dcf212400cd5df28be3
treefba83f551b472a7ee4d315881fdf85d123710b39
parent8ea654251a61d080e8c8553c9905e02599059294
ostree: Improve formatting for well-known summary metadata keys

If a summary metadata key is well-known, like ostree.static-deltas, or
ostree.summary.last-modified, format it a little more nicely.

This is especially important for timestamps like last-modified, since
otherwise they’re formatted as a big-endian uint64, which is basically
unusable for the user.

Non-formatted output can still be retrieved using the OSTREE_DUMP_RAW
flag, and the non-formatted key name is always printed for clarity.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #826
Approved by: cgwalters
src/ostree/ot-dump.c